macos: make OpenGL context opaque when possible
authorChristian Hergert <chergert@redhat.com>
Fri, 19 Feb 2021 21:18:42 +0000 (13:18 -0800)
committerChristian Hergert <chergert@redhat.com>
Fri, 19 Feb 2021 21:23:26 +0000 (13:23 -0800)
commitb2fd09625c772008af7225b5f71ca172b3445daa
tree07c4bc6343edf5e59165564eef49f2483a64253d
parent5797c72e9c2c17b52c4f7969eae0994636babba6
macos: make OpenGL context opaque when possible

If our opaque region is the entire surface, then we can make the OpenGL
context opaque like we do for decorated windows. This improves performance
as the compositor does not need to blend the surface with the contents
behind the window.
gdk/macos/gdkmacosglcontext.c
gdk/macos/gdkmacossurface-private.h
gdk/macos/gdkmacossurface.c